package com.cn.proxy.staticproxy;

public class Client {
	public static void main(String[] args) {
		Subject subject1 = new ProxySubject(new RealSubjectA());
		subject1.sing();
		System.out.println("-------------------------------------");
		Subject subject2 = new ProxySubject(new RealSubjectB());
		subject2.sing();
		System.out.println("-------------------------------------");
		Subject subject3 = new ProxySubject(new RealSubjectC());
		subject3.sing();
	}
}
